package com.chen.facemanager.service.impl;

import com.chen.facemanager.bean.Sca;
import com.chen.facemanager.dao.ScaDao;
import com.chen.facemanager.service.ScaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Service
public class ScaServiceImpl implements ScaService {

    @Autowired
    private ScaDao scaDao;

    @Transactional
    @Override
    public void saveScan(String uid, String h_id,String htype,String macid,String phoneX) {
        Sca s = new Sca(uid,h_id,htype,0,macid,phoneX);
        scaDao.save(s);
    }
}
